#!/bin/bash

floders=$(ls ${1}/)
for k in 1 3 5
do
    for floder in $floders 
    do
    files=$(ls ${1}/${floder}/)
        for file in $files 
        do
            input="${1}/${floder}/${file}"
	    echo ""	
	    time1=$(date)
	    echo ${time1}
	    echo "timeout 14400 ../../KDefective -r ${input} -O solve -a CPLEX -D Set -k ${k} -t 10800"
        done
    done
done
